Skip to main content

mergBLEAddCharacteristicToService

Type

command

Summary

Add a characteristic to a previously created service

Syntax

mergBLEAddCharacteristicToService <pUUID>, <pCharacteristic>, <pRead>, <pWriteWithoutResponse>, <pWrite>, <pNotify>, <pIndicate>, <pAuthenticatedSignedWrites>, <pNotifyEncryptionRequired>, <pIndicateEncryptionRequired>, [<pValue>]

Description

Add a characteristic to a previously created service

Parameters

NameTypeDescription

pUUID

A service UUID being advertised by the device

pCharacteristic

A characteristic UUID.

pRead

The characteristic’s value can be read.

pWriteWithoutResponse

The characteristic’s value can be written, without a response from the peripheral to indicate that the write was successful.

pWrite

The characteristic’s value can be written, with a response from the peripheral to indicate that the write was successful.

pNotify

Notifications of the characteristic’s value are permitted, without a response from the central to indicate that the notification was received.

pIndicate

Indications of the characteristic’s value are permitted, with a response from the central to indicate that the indication was received.

pAuthenticatedSignedWrites

Signed writes of the characteristic’s value are permitted, without a response from the peripheral to indicate that the write was successful.

pNotifyEncryptionRequired

Only trusted devices can enable notifications of the characteristic’s value.

pIndicateEncryptionRequired

Only trusted devices can enable indications of the characteristic’s value.

pValue

(optional with The default) The value of the characteristic. Only set for readable characteristics.

Compatibility and Support

Introduced

LiveCode 8.0

OS

ios

mac

Platforms

desktop

mobile

Thank you for your feedback!

Was this page helpful?